<extend name="public@base"/>
block(name='main')
    .wrap.js-check-wrap
        ul.nav.nav-tabs(role="tablist")
            li.nav-item: a.nav-link.active(href="{:url('Menu/index')}") 后台菜单
            li.nav-item: a.nav-link(href="{:url('Menu/add')}") 添加菜单
            li.nav-item: a.nav-link(href="{:url('Menu/lists')}") 所有菜单
        form.js-ajax-form(action="{:url('Menu/listOrder')}", method='post')
            .table-actions
                button.btn.btn-primary.btn-sm.js-ajax-submit(type='submit') {:lang('SORT')}
            table#menus-table.table.table-hover.table-bordered.table-list
                thead
                    tr
                        th {:lang('SORT')}
                        th ID
                        th {:lang('NAME')}
                        th 操作
                        th {:lang('STATUS')}
                        th {:lang('ACTIONS')}
                tbody
                    | {$category}
                tfoot
                    tr
                        th {:lang('SORT')}
                        th ID
                        th {:lang('NAME')}
                        th 操作
                        th {:lang('STATUS')}
                        th {:lang('ACTIONS')}
            .table-actions
                button.btn.btn-primary.btn-sm.js-ajax-submit(type='submit') {:lang('SORT')}
block(name='bottom-script')
    script.
        $(document).ready(function () {
            Wind.css('treeTable');
            Wind.use('treeTable', function () {
                $("#menus-table").treeTable({
                    indent: 20
                });
            });
        });

